import React, { useState } from 'react';
import { AsyncSelect } from '@ecoding/components.antd';

const C = () => {
    const [v, setV] = useState();
    return (
        <AsyncSelect
            onChange={(v) => setV(v)}
            data={{
                datas: [{label: "cxc", value:"1"},{label: "wc", value:"2"}]
            }}
            value={v}
            style={{width: '100%'}}
            placeholder="请选择"
        />
    );
}

export default C;